<template>
  <div id="app">
    <el-container>
        <el-aside width="200px" >
          <el-menu :default-openeds="['1', '3']">
            <el-submenu index="1">
              <template slot="title"><i class="el-icon-message"></i>导航一</template>
              <el-menu-item-group>
              
                <el-menu-item index="1-1">
                    <router-link to="/datatableArray">
                        数组表格
                    </router-link>
                </el-menu-item>
                <el-menu-item index="1-1">
                    <router-link to="/datatableDb" >
                        数据表格
                    </router-link>
                </el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
            <router-view/>
        </el-main>
    </el-container>
    
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
